{% load firstof from future %}{% load static %}<!DOCTYPE html>
{% load i18n %}

<html
  lang="{{ LANGUAGE_CODE|default:"en-us" }}"
  {% if LANGUAGE_BIDI %}dir="rtl"{% endif %}>
  <head>
    <title>{% block title %}{% endblock %}</title>
    <link
      rel="stylesheet/less"
      type="text/css"
      href="{% static "print_request/less/base.less" %}" />
    <script src="{% static "print_request/js/less.js" %}" type="text/javascript"></script>
    {% block extrastyle %}{% endblock %}
    {% block extrahead %}{% endblock %}
  </head>
  <body>
    <header>
      {% block branding %}{% endblock %}
    </header>
    <nav>
      {% block sidebar %}{% endblock %}
    </nav>
    <section>
      {% block pretitle %}{% endblock %}
      {% block content_title %}
        {% if title %}
          <h1 id="section-title">{{ title }}</h1>
        {% endif %}
      {% endblock %}

      <div id="content-main">
        {% block content %}
          {% block object-tools %}{% endblock %}
          {{ content }}
        {% endblock %}
      </div>
    </section>
    <footer>
      {% block footer %}{% endblock %}
    </footer>
    {% block extraend %}{% endblock %}
  </body>
</html>
